package 类和对象课堂练习.封装;

import 类和对象课堂练习.Pet;

public class Dog extends Pet {
    String zhonglei;
    public Dog(String name, int health, int love, String sex,String zhonglei) {
        super(name, health, love, sex);
        this.zhonglei=zhonglei;
    }
    public void print(){
        System.out.println("喂的是猪骨头");
        System.out.println(name+"是一只"+zhonglei+"，会看家，会跳火圈");
        super.print();
    }
}
